-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude some synonym types from duplicate_exact_synonym report query #1179
Conversation
- Excludes abbreviation (OMO:0003000) and acronym (OMO:0003012) synonym type from this test - Ignores case when comparing synonyms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a very nice solution. Using a subquery: if there is an acronym or abbreviation annotation, we filter the exact match out (BOUND(?exclude)
). The actual equivalence check happens outside the subquery.
Cool, I like it, but I would be more confident if @anitacaron could review this..
I agree that it was a pretty smart way to solve the problem but it wasn't mine. The query is essentially the one @anitacaron shared from Uberon with only slight modification to improve performance and additionally exclude acronym. Having her review it is a good idea. |
In this query I decided to pass the property up from the subquery to improve performance slightly. In thinking about this just now while working on another query, it occurred to me that this might not work as desired in a specific scenario. Here's the scenario: Does this matter? I've actually been wondering about the inclusion of DO & Uberon don't use |
@allenbaron very good thinking - I totally missed this. Here is my position:
My position is that this "scenario" you identified actually makes the situation better, not worse. |
Resolves #1175
docs/
have been added/updatedmvn verify
says all tests passmvn site
says all JavaDocs correctCHANGELOG.md
has been updatedAs discussed in issue #1175, this PR excludes exact synonyms annotated with the abbreviation (OMO:0003000) and acronym (OMO:0003012) synonym type from the
duplicate_exact_synonym
test of ROBOT report. It also now ignores case when making comparisons.Exclusion of abbreviations and acronyms should be backward compatible and only incur a time hit for those not using them, while ignoring case will bring up new errors.
I'm happy to change this PR as needed and will attempt to update the documentation and tests if I can (I have no experience with Java).